<?php /*a:2:{s:60:"D:\php\phpstudy_pro\WWW\tp24\app\admin\view\index\index.html";i:1611021356;s:62:"D:\php\phpstudy_pro\WWW\tp24\app\admin\view\public\header.html";i:1610592116;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="/static/js/jquery.js"></script>
<img src="/static/img/Snipaste_2021-01-12_14-56-45.png" alt="" width="300px">
<ul>
    <li>首页</li>
    <li>首页</li>
    <li>首页</li>
    <li>首页</li>
</ul>
<h1><?php echo htmlentities($str); ?></h1>
<hr>
<?php echo htmlentities($arr1[0]); ?> --   <?php echo htmlentities($arr1['1']); ?>
<hr>
<?php echo htmlentities($person['name']); ?> -- <?php echo htmlentities($person['sex']); ?>
<hr>
<?php echo htmlentities($persons[0]['id']); ?> -- <?php echo htmlentities($persons['0']['name']); ?>
<hr>
<?php echo htmlentities($obj->name); ?> -- <?php echo htmlentities($obj->nicname); ?>
<hr>
<?php echo htmlentities($name); ?> -- <?php echo htmlentities($age); ?> -- <?php echo htmlentities($sex); ?>
<hr>
<?php if(is_array($arr1) || $arr1 instanceof \think\Collection || $arr1 instanceof \think\Paginator): if( count($arr1)==0 ) : echo "" ;else: foreach($arr1 as $k=>$v): ?>
   <?php echo htmlentities($k); ?> -- <?php echo htmlentities($v); ?><br>
<?php endforeach; endif; else: echo "" ;endif; ?>
<hr>
<?php if(is_array($persons) || $persons instanceof \think\Collection || $persons instanceof \think\Paginator): if( count($persons)==0 ) : echo "" ;else: foreach($persons as $key=>$v): ?>
     <?php echo htmlentities($key); ?> -- <?php echo htmlentities($v['id']); ?> -- <?php echo htmlentities($v['name']); ?><br>
<?php endforeach; endif; else: echo "" ;endif; ?>
<hr>
<?php foreach($persons as $key=>$v): ?>
<?php echo htmlentities($key); ?> -- <?php echo htmlentities($v['id']); ?> -- <?php echo htmlentities($v['name']); ?><br>
<?php endforeach; ?>
<hr>
<?php if(is_array($persons) || $persons instanceof \think\Collection || $persons instanceof \think\Paginator): $k = 0;$__LIST__ = is_array($persons) ? array_slice($persons,0,7, true) : $persons->slice(0,7, true); if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 3 );++$k;?>
 key:<?php echo htmlentities($key); ?> -- k:<?php echo htmlentities($k); ?>  mod:<?php echo htmlentities($mod); ?> -- <?php echo htmlentities($vo['id']); ?> -- <?php echo htmlentities($vo['name']); ?><br>
<?php endforeach; endif; else: echo "$empty" ;endif; ?>
<hr>
<?php echo htmlentities(md5($name)); ?> -- <?php echo htmlentities(substr($name,0,6)); ?>
<hr>
<?php echo htmlentities(date('Y-m-d H:i:s',!is_numeric($time)? strtotime($time) : $time)); ?>  <?php echo htmlentities(date('Y-n-j H:i:s',!is_numeric($time)? strtotime($time) : $time)); ?>
<hr>
<?php echo htmlentities(sprintf('%02d',$num)); ?> - <?php echo htmlentities((isset($wei) && ($wei !== '')?$wei:'1')); ?> - <?php echo $str; ?>
<hr>
<?php echo substr(strtoupper(md5($name)),0,10); ?>
<hr>
<?php echo substr(md5($name),0,10); ?>
<hr>
<?php echo !empty($status) ? '正常' : '错误'; ?>
<hr>
<?php echo isset($name1) ? htmlentities($name1) : '默认值'; ?>
<hr>
<?php if(!empty($name)) echo '默认值'; ?>
<hr>
<?php echo !empty($name1) ? htmlentities($name1) : 'NO'; ?>
<hr>
<?php echo $a==$b ? 'yes'  :  'no'; ?>
<hr>

{foreach $persons as $key=>$v }
<{$key}> -- <{$v['id']}> -- <{$v['name']}><br>
{/foreach}


<hr>

<hr>

<hr>
<hr>
<a href="<?php echo url('admin/index/test'); ?>">点我</a>
<?php if($name === '张三1'): ?>
相等
<?php else: ?>
不相等
<?php endif; ?>
<img src="/static/img" alt="">
<br><br><br><br><br><br>
<br><br><br><br><br><br>
<br><br><br><br><br><br>
<br><br><br><br><br><br>





</body>
</html>